#pragma once

#include "znx_syscall.h"
#include "znx_string.h"
#include "znx_pool.h"

int64_t
znx_read_file(const char *file, u_char *buf,
    size_t buf_size, char **err);

// apply buffer space from the pool
// if znx_listeners_conf_load return ZNX_FALSE, err will be set.
znx_bool_t
znx_file_load(znx_pool_t *pool,
    const char *file, znx_str_t *buffer, char **err);
